
#import("dart:uri");
//#import("../../projects/dart/dart/lib/compiler/compiler.dart");

void main() {

  print("starting compile");

//  compile(
//    new Uri("foo://woot/helloworld.dart"),
//    new Uri("libs://woot/"),
//    null,
//    getUriContents,
//    handleError).then((String result) {
//      setCompileResult_(result);
//  });
}

//void handleError(Uri uri, int begin, int end, String message, Diagnostic kind) {
//  String url = (uri == null ? "" : uri.toString());
//
//  reportError_(url, begin, end, message, kind.name);
//}
//
//Future<String> getUriContents(Uri uri) {
//  return new Future.immediate(getUriContents_(uri.toString()));
//}
//
//// TODO:
//// replaced by embedder
//void setCompileResult_(String result) {
//  print("called setCompileResult_()");
//}
//
//// TODO:
//// replaced by embedder
//String getUriContents_(String uri) {
//  print("called getUriContents_(): ${uri}");
//
//  return "";
//}
//
//// TODO:
//// replaced by embedder
//void reportError_(String url, int begin, int end, String message, String kind) {
//  print("called reportError_()");
//}
